package com.base.lock;

import com.base.lock.annotation.Lock;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author carl
 */
public interface LockKeyBuilder {

    /**
     * 构建key
     *
     * @param invocation     invocation
     * @param lock 定义
     * @return key
     */
    String buildKey(MethodInvocation invocation, Lock lock);
}
